using System;
using System.Collections.Generic;
using System.Text;
using HappySprite;
using HappySprite.Graphics;

namespace HappyInvaders
{
    class BulletVisual : Visual
    {
        public BulletVisual()
        {
            Item.RenderItem.Width = Constants.BulletWidth;
            Item.RenderItem.Height = Constants.BulletHeight;
            Item.RenderItem.ImageMap = new ImageMap(Constants.BulletTexture);
        }

        internal override void OnAdd(View view)
        {
            // Play bullet shooting sound
            Global.Audio.PlayToEnd(Constants.BulletCue);
        }
    }
}
